<template>
	<!-- 导航栏 -->
	<view class="nav">
		<view class="guanbi">
			<uni-icons @tap="NavigateBack" type="back" size="24"></uni-icons>
			<navigator url="/pages/index/index" open-type="switchTab" hover-class="other-navigator-hover"><view class="guan">关闭</view></navigator>
		</view>
		<slot name="center">工作台</slot>
		<view class="san">
			<slot  name="footer"></slot>
		</view>
		
	</view>
</template>

<script>
	export default {

		
		setup(){

			const NavigateBack = ()=>{
						uni.navigateBack()
					}
		
			return {
				NavigateBack
			}
		}
		
	}
</script>

<style  lang="scss">
.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16rpx 16rpx;
	background-color: $uni-text-color-inverse;
	.guanbi {
		display: flex;
		width: 150rpx;
	}
	.san {
		padding-left: 70rpx;
		width: 150rpx;
		box-sizing: border-box;
	}
}
</style>
